#include "mainwindow.h"
#include "ui_mainwindow.h"

//#include "SignalProcessing/FilterBlock.h"
//#include "SignalProcessing/Filters/AverageFilter.h"
//#include "hcitool.c"

int PingFlag = 0;

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent), ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

int MainWindow::DevicePingListClick()
{
    // Code Needed for HCITOOL SCAN
    ui->DeviceItemList->addItem("00:1C:26:F7:7F:67"); // Input HCITOOL SCAN Mac Address
    return(1);
}

int MainWindow::SourceDeviceListClick()
{
    return(1);
}

int MainWindow::BeginPingClick()
{

    //QChar *str("00:1C:26:F7:7F:67");
    char *ping_macaddress = "00:1F:3A:F3:8E:FF";
    //L2DOPPLAR_ping(ping_macaddress);
    PingFlag = 1;
    return(0);

}
